<?php

namespace App\Http\Filters;


class HousingsFilter extends Filter
{
    protected $simpleFilters = [
        'id',
        'housings_num' => ['like', '%?%'],
    ];

    protected $filters = [
        'field_name',
    ];

//    protected function fieldName($val)
//    {
//        $this->builder->where('field_name', $val);
//    }


//    protected $simpleFilters = [
//        'id',
//        'username' => ['like', '%?%'],
//        'name' => ['like', '%?%'],
//    ];
//    protected $filters = [
//        'role_name',
//        'permission_name',
//    ];
}
